home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / udev / rules.d / 85-ifupdown.rules < prev    next >
Encoding:
Text File  |  2007-04-10  |  708 b   |  17 lines

  1. # This file causes network devices to be brought up or down as a result
  2. # of hardware being added or removed, including that which isn't ordinarily
  3. # removable.
  4. # See udev(7) for syntax.
  5.  
  6. SUBSYSTEM=="net", DRIVERS=="?*", GOTO="net_start"
  7. GOTO="net_end"
  8.  
  9. LABEL="net_start"
  10.  
  11. # Bring devices up and down only if they're marked auto.
  12. # Use start-stop-daemon so we don't wait on dhcp
  13. ACTION=="add",        RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifup -- --allow auto $env{INTERFACE}"
  14. ACTION=="remove",    RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifdown -- --allow auto $env{INTERFACE}"
  15.  
  16. LABEL="net_end"
  17.